home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK2.toast / Development Kits (Disc 2) / QuickTime™ VR 2.0 SDK / QTVR C⁄C++ Runtime API / Sample Code / VRShell Sample Code / VRKeypad / TestFunctions.c < prev    next >
Encoding:
Text File  |  1997-05-22  |  924 b   |  43 lines  |  [TEXT/MPCC]

  1. //
  2. //    File:        TestFunctions.c
  3. //
  4. //    Contains:    Insert test functions for QuickTime VR inside this file.
  5. //
  6. //    Written by:    Tim Monroe
  7. //                Based (heavily!) on the MovieShell code written by Apple DTS
  8. //
  9. //    Copyright:    © 1994-1996 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <3>         12/06/96    rtm        added keypad navigation code
  14. //       <2>         11/27/96    rtm        conversion to personal coding style
  15. //       <1>         02/26/95    khs        first file
  16. //       
  17. //
  18.  
  19. // header files
  20. #include "TestFunctions.h"
  21.  
  22. #include "DTSQTUtilities.h"
  23. #include "MacFramework.h"
  24.  
  25.  
  26. //////////
  27. //
  28. // ChangePanAngle
  29. // Change the current pan angle the specified number of degrees.
  30. //
  31. //////////
  32.  
  33. OSErr ChangePanAngle (QTVRInstance theInstance, float theAmount)
  34. {
  35.     float    myAngle;
  36.     OSErr    myErr;
  37.     
  38.     myAngle = QTVRGetPanAngle(theInstance);
  39.     myAngle += theAmount;
  40.     myErr = QTVRSetPanAngle(theInstance, myAngle);
  41.  
  42.     return(myErr);
  43. }